package com.lzx.article.controller.web;

import com.lzx.article.service.TwoSortService;
import com.lzx.common.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/article/twoSort/web")
public class WebTwoSortController {
    @Resource
    private TwoSortService twoSortService;

    //获取使用量最多的十个标签
    @GetMapping("/getTopTenLabel")
    public R getTopTenLabel() {
        return twoSortService.getTopTenLabel();
    }
}
